import {createRouter, createWebHashHistory, RouteRecordRaw} from "vue-router";

const routes:Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: 'login',
    },
    {
        path: '/login',
        name: 'login',
        component: () => import( '../views/login/login.vue'),
        meta: {name: '登录'}
    }

]
export const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})

export default router
